//
//  WXShareTool.h
//  QingQing
//
//  Created by yang on 2018/12/18.
//  Copyright © 2018年 yang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WXApi.h"

//分享类型
typedef NS_ENUM(NSInteger,ShareStyle){
    ///微信好友
    ShareStyleWechat,
    ///朋友圈
    ShareStyleFriendCircle,
};

NS_ASSUME_NONNULL_BEGIN

@interface WXShareTool : NSObject
///ios（带链接）
+ (void)wxShareWithTitle:(NSString *)title content:(NSString *)content url:(NSString *)url defaultImage:(UIImage *)defaultImage type:(ShareStyle)type successBlock:(void(^)(void))successBlock failBlock:(void(^)(void))failBlock;

///iOS（图片）
+(void) wxShareWithImage:(NSString *)imgStr type:(ShareStyle)type successBlock:(void(^)(void))successBlock failBlock:(void(^)(void))failBlock;


///分享小程序
+ (void)wxMiniProgramShareWithUserName:(NSString *)userName path:(NSString *)path webpageUrl:(NSString *)webpageUrl hdImage:(UIImage *)hdImage withShareTicket:(BOOL)withShareTicket miniprogramType:(WXMiniProgramType)miniprogramType title:(NSString *)title;

@end

NS_ASSUME_NONNULL_END
